.class public Lcom/estrongs/android/ui/dlna/dialog/c;
.super Lcom/estrongs/android/ui/dialog/q;
.source "DlnaDeviceChooseDialog.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

.field private b:Les/d10;

.field private c:Les/d10$b;

.field private d:Landroid/widget/ProgressBar;

.field private e:Landroid/widget/TextView;

.field private f:Lcom/estrongs/fs/g;

.field private g:Les/h10;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/fs/g;Les/h10;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->f:Lcom/estrongs/fs/g;

    .line 3
    iput-object p3, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->g:Les/h10;

    .line 4
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dlna/dialog/c;->b(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dlna/dialog/c;)Les/d10;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->b:Les/d10;

    return-object p0
.end method

.method private a()V
    .locals 2

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    const/16 v1, 0x8

    .line 23
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method private a(Landroid/content/Context;)V
    .locals 4

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const/4 v0, 0x0

    const v1, 0x7f0c00d7

    .line 4
    invoke-virtual {p1, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    .line 6
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const v0, 0x7f0902ec

    .line 7
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0809c4

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 9
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f06009c

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    .line 10
    invoke-static {v1, v2}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 11
    new-instance v1, Lcom/estrongs/android/ui/dlna/dialog/c$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dlna/dialog/c$b;-><init>(Lcom/estrongs/android/ui/dlna/dialog/c;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0902eb

    .line 12
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 13
    new-instance v1, Lcom/estrongs/android/ui/dlna/dialog/c$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dlna/dialog/c$c;-><init>(Lcom/estrongs/android/ui/dlna/dialog/c;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f090934

    .line 14
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->d:Landroid/widget/ProgressBar;

    const v0, 0x7f090859

    .line 15
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->e:Landroid/widget/TextView;

    const v0, 0x7f090998

    .line 16
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroidx/recyclerview/widget/RecyclerView;

    .line 17
    new-instance v0, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 18
    new-instance v0, Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    .line 19
    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    new-instance v0, Lcom/estrongs/android/ui/dlna/dialog/c$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dlna/dialog/c$d;-><init>(Lcom/estrongs/android/ui/dlna/dialog/c;)V

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;->a(Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter$b;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dlna/dialog/c;Les/l10;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dlna/dialog/c;->a(Les/l10;)V

    return-void
.end method

.method private a(Les/l10;)V
    .locals 2

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    if-eqz v0, :cond_0

    .line 25
    monitor-enter v0

    .line 26
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    invoke-virtual {v1, p1}, Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;->a(Les/l10;)I

    .line 27
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    :cond_0
    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/dlna/dialog/c;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->d:Landroid/widget/ProgressBar;

    if-eqz v0, :cond_0

    const/16 v1, 0x8

    .line 8
    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method private b(Landroid/content/Context;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dlna/dialog/c;->a(Landroid/content/Context;)V

    const/4 p1, 0x0

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    const/4 p1, 0x1

    .line 4
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 5
    new-instance p1, Lcom/estrongs/android/ui/dlna/dialog/c$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dlna/dialog/c$a;-><init>(Lcom/estrongs/android/ui/dlna/dialog/c;)V

    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/dlna/dialog/c;->c()V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/ui/dlna/dialog/c;)Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->a:Lcom/estrongs/android/ui/dlna/adapter/DlnaDeviceAdapter;

    return-object p0
.end method

.method private c()V
    .locals 2

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dlna/dialog/c$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dlna/dialog/c$e;-><init>(Lcom/estrongs/android/ui/dlna/dialog/c;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->c:Les/d10$b;

    .line 3
    new-instance v1, Les/d10;

    invoke-direct {v1, v0}, Les/d10;-><init>(Les/d10$b;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->b:Les/d10;

    .line 4
    invoke-virtual {v1}, Les/d10;->b()V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/ui/dlna/dialog/c;)Lcom/estrongs/fs/g;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->f:Lcom/estrongs/fs/g;

    return-object p0
.end method

.method private d()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/ui/dlna/dialog/c;)Les/h10;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->g:Les/h10;

    return-object p0
.end method

.method private e()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dlna/dialog/c;->d:Landroid/widget/ProgressBar;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/ui/dlna/dialog/c;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dlna/dialog/c;->a()V

    return-void
.end method

.method static synthetic g(Lcom/estrongs/android/ui/dlna/dialog/c;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dlna/dialog/c;->e()V

    return-void
.end method

.method static synthetic h(Lcom/estrongs/android/ui/dlna/dialog/c;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dlna/dialog/c;->b()V

    return-void
.end method

.method static synthetic i(Lcom/estrongs/android/ui/dlna/dialog/c;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dlna/dialog/c;->d()V

    return-void
.end method
